import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JLabel;
import javax.swing.JPanel;

	/** pour ecrire les text de la barre du bas*/
		class Ptext2 extends JPanel
		{
			public Color vert = new Color(0,130,0);
			private JLabel text = new JLabel();
			public Ptext2(String nom, Color couleurecriture, int position)
			{
				
				text.setText(nom);
				text.setForeground(couleurecriture);
				text.setHorizontalTextPosition(JLabel.RIGHT);
				this.add(text);

			}
			public void setText(String nom)
			{
				text.setText(nom);
			}
			public void paintComponent(Graphics g)
			{
				g.setColor(vert);
				g.fillRect(0, 0, this.getWidth(), this.getHeight());
				g.setColor(Color.black);
				g.fillRoundRect(0, 0, this.getWidth(), this.getHeight(), 5, 5);
				//g.setColor(Color.orange);
				//g.drawRoundRect(2, 2, this.getWidth()-4, this.getHeight()-4, 5, 5);
				g.setColor(Color.yellow);
				g.drawRoundRect(-1, -1, this.getWidth(), this.getHeight(), 5, 5);
			}
		}

	